import { runApp } from './runApp';
export { APP_MODE } from './appMode';
export * from './runApp';
export { lazy } from './lazy';
export * from './types';

export function createApp(appConfig, staticConfig?: any) {
  console.warn(
    'Detected that you are using createApp, please use runApp method, Visit https://ice.work/docs/guide/basic/api.'
  );
  runApp(appConfig, staticConfig);
}

export * from './router';
import helpers from './helpers';
import logger from './logger';
import request from './request/request';
import useRequest from './request/useRequest';
import { createStore } from '@ice/store';
import store from './store/index';
export * from './auth';

export { helpers, logger, request, useRequest, createStore, store };
